import java.awt.Canvas;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;


public class Help extends Frame{
	
	private static final long serialVersionUID = -8373365378042080641L;

	Help(){
		super("Pony");
		setLocation(400, 400);
		setSize(500,686);
		setResizable(false);
		MyCanvas c = new MyCanvas();
		add(c);
	    setVisible(true);
	    addWindowListener(new WindowAdapter(){
			public void windowClosed(WindowEvent arg0) {
				setVisible(false);
			}	    	
	    });
	}
	class MyCanvas extends Canvas{
	
		private static final long serialVersionUID = -4992312842662467414L;

	public void paint(Graphics g)
	  {
	    Image img=null;
	    try {
	    img=ImageIO.read(new File("obey.png"));
	    }
	    catch(IOException e){
	    	
	    }
	    g.drawImage(img,0,0,this);
	  }
	}
	
	

}
